package single;

/**
 * @Author longhj
 * @Description 懒汉模式(线程不安全)
 * @Date 2021/09/04 星期六 12:18
 */
public class HungryManModeThreadIsNotSafe {
    private static HungryManModeThreadIsNotSafe hungryManMode;

    private HungryManModeThreadIsNotSafe() {
    }

    public static HungryManModeThreadIsNotSafe getHungryManMode() {
        if (null != hungryManMode) {
            return hungryManMode;
        }
        hungryManMode = new HungryManModeThreadIsNotSafe();
        return hungryManMode;
    }
}
